package com.hzhq.contract.service;

import com.hzhq.contract.bean.dto.RoleDTO;
import com.hzhq.contract.bean.entity.Role;
import com.hzhq.contract.result.Result;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author: hzhq1255
 * @mail: hzhq1255@163.com
 * @date: 2021/4/15 20:08
 * @desc:
 */
public interface RoleService {


    List<RoleDTO> getAllList();

    Page<RoleDTO> getAllPage(Integer currentPage, Integer pageSize);

    RoleDTO getOneByRoleId(String roleId);

    RoleDTO getOneByRoleName(String roleName);

    RoleDTO getOneByRoleType(Integer roleType);

    RoleDTO update(RoleDTO roleDTO);

    RoleDTO save(RoleDTO roleDTO);

    List<RoleDTO> saveAll(List<RoleDTO> roleDTOList);

    String deleteById(String roleId);

    String deleteByName(String roleName);

    List<String> deleteAll(List<String> roleIds);

    Page<RoleDTO> searchAllPages(RoleDTO roleDTO, Integer currentPage,Integer pageSize);

}
